import Vue from 'vue'
import Vuex from 'vuex'


Vue.use(Vuex)

const store = new Vuex.Store({
	state: {
		currAudioId: 'none',
		userInfo:{},
	},
	mutations: {
		setCurrAudioId(state, payload){
			state.currAudioId=payload;
		},
		setUserInfo(state, userInfo) {
			state.userInfo = userInfo;
		},
	}
})

export default store
